package cn.silver.module.workflow.param;

import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchEnums;
import cn.silver.framework.mybatis.param.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "ModelVariableParam", title = "流程管理-流程模型管理-流程变量查询对象")
public class ModelVariableParam extends BaseParam implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "模型ID")
    @TableField(name = "model_id", searchType = SearchEnums.EQ)
    private String modelId;
    /**
     * 变量名
     */
    @Schema(title = "变量名")
    @TableField(name = "code",searchType = SearchEnums.LIKE)
    private String code;
    /**
     * 显示名
     */
    @Schema(title = "显示名")
    @TableField(name = "name",searchType = SearchEnums.LIKE)
    private String name;
    /**
     * 变量类型
     */
    @Schema(title = "变量类型")
    @TableField(name = "type",searchType = SearchEnums.LIKE)
    private String type;
    /**
     * 是否内置
     */
    @Schema(title = "是否内置")
    @TableField(name = "builtin",searchType = SearchEnums.LIKE)
    private Boolean builtin;
}
